import {xhrPostJson, xhrGet } from "@/services";

const baseUrl = '/asm';

export const apiUrl = {
    findTags: `${baseUrl}/costType/findTags`,
    sortFapiao: `${baseUrl}/fapiaoext/sortFapiao`,
    findValues: `/sym/dict/findValues`,
    downtemplate: `${baseUrl}/alloctnitems/downtemplate`, // 下载模板
};

export const getTagList = async (params: any) => {
    return xhrPostJson(apiUrl.findTags, params);
};

/**
 * 获取排序
 * @param params
 */
export const getSeqList = async (params: any) => {
    return xhrGet(apiUrl?.findValues, {code: 'tagSEQ'});
};
